projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7ca207
)
widget: Update path unconditionally in gtk_widget_reset_style()
author
Benjamin Otte
<otte@redhat.com>
Sun, 27 Mar 2011 00:53:04 +0000
(
01:53
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 27 Mar 2011 00:53:04 +0000
(
01:53
+0100)
Also, don't set the new path twice on the style context.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 9a6137dcbdc27b52cf31b0bfa455af1ffe138a69..f64841b5fc600d8491c4bcfa157b636298d84d2a 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-8692,12
+8692,7
@@
_gtk_widget_propagate_screen_changed (GtkWidget *widget,
static void
reset_style_recurse (GtkWidget *widget, gpointer data)
{
- if (widget->priv->context)
- {
- _gtk_widget_update_path (widget);
- gtk_style_context_set_path (widget->priv->context,
- widget->priv->path);
- }
+ _gtk_widget_update_path (widget);
if (GTK_IS_CONTAINER (widget))
gtk_container_forall (GTK_CONTAINER (widget),